<#import "../../layout/single.ftl" as layout>
<@layout.single title="报销单审批" javascripts=["plugins/layui/laydate/laydate.js","plugins/steps/jquery.steps.js"] css=["css/plugins/steps/jquery.steps.css"]>
<div class="container-fluid" style="padding-top: 16px;">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>业务办理</h5>
                </div>
                <div class="ibox-content">
                    <form method="post" class="form-horizontal" name="expenseForm">
                        <div class="form-group">
                            <label class="col-sm-2 control-label" for="employeeName">是否同意</label>
                            <div class="col-sm-10">
                                <div class="radio i-checks">
                                    <label>
                                        <input type="radio" value="goon" name="nextStep"> <i></i> 同意
                                    </label>
                                </div>
                                <div class="radio i-checks">
                                    <label>
                                        <input type="radio" value="withdraw" name="nextStep"> <i></i> 不同意
                                    </label>
                                </div>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label" for="comment">备注说明</label>
                            <div class="col-sm-10">
                                <textarea class="form-control" name="comment" id="comment"></textarea>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    laydate.render({
        elem: "#costtime",
        showBottom: true,
        max: new Date().getTime(),
        type: "date"
    });

    $(function () {
        $(":radio[name='nextStep']").change(function () {
            var _value = $(this).val();
            var conditionJson = [];
            var _item = {};
            _item.varName = "nextStep";
            _item.varValue = _value;
            conditionJson[0] = _item;
            forms.getNextAssignee("${taskId}", conditionJson);
        });
    });
</script>
</@layout.single>